package com.shareware.common.demo;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.shareware.common.utils.INetChangeProtocol;
import com.shareware.common.utils.LogExtKt;
import com.shareware.common.utils.NetExtKt;
import com.shareware.common.utils.StringExtKt;

/**
 * desc: 功能描述
 * email: mobiledeveloper@qq.com
 */
public class MainActivity extends AppCompatActivity implements INetChangeProtocol {

    @SuppressLint("MissingPermission")
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        getResources().getDisplayMetrics().scaledDensity = getResources().getDisplayMetrics().density;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.locationText).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                String macAddress = AppExtKt.getAddressMac();
//                String imei = AppExtKt.getImei();
//                String uuid = UUID.randomUUID().toString();
            }
        });
        NetExtKt.registerNetChangeListener(this);
    }

    @Override
    public void netChanged(int state) {
    }
}
